<template>
	<view class="page" :style="{'min-height':h+'px','padding-top':(mt)+'px'}">
		<c-nav-bar1 :title="titles"></c-nav-bar1>
		<view class="bg"></view>
		<view class="content">
			<view class="tit">退款中</view>
			<view class="tabder">
				<view class="one">
					<u-icon name="checkmark-circle-fill" color='#fff' size="36"></u-icon>
				</view>
				<view class="two">
					<text></text>
					<u-icon name="checkmark-circle-fill" color='#fff' size="36"></u-icon>
					<text></text>
				</view>
				<view class="three">
					<u-icon name="checkmark-circle-fill" color='#fff' size="36"></u-icon>
				</view>
			</view>
			<view class="tabder-text">
				<view class="one">
					提交订单
				</view>
				<view class="two">
					退款审核
				</view>
				<view class="three">
					审核通过
				</view>
			</view>



			<view class="box">
				<view class="topPart">
					<view class="top">
						<text>退款总额</text>
						<text>￥</text>
						<text>{{list.orderAmount}}</text>
					</view>
					<view class="bot">
						扣除手续费 ¥0.00
					</view>
				</view>
			</view>
			<view class="box">
				<view class="topPart">
					<view class="top">
						<text>退款总额</text>
						<text>￥</text>
						<text>{{list.orderAmount}}</text>
					</view>
					<view class="bot">
						扣除手续费 ¥0.00
					</view>
				</view>
				<view class="steps">
					<view class="line"></view>
					<view class="item">
						<view class="p1">
							<text>退款审核</text>
							<text>{{list.arriveDate}}</text>
						</view>
						<view class="p2">
							正在审核您的退款请求
						</view>
						<view class="p2">
							{{list.arriveDate}}
						</view>
						<image src="https://i.ringzle.com/file/20240219/318afd4304fe41b0afd255d68bfcc218.png"></image>
					</view>
					<view class="item">
						<view class="p1">
							<text>提交订单 </text>
							<text>{{list.arriveDate}}</text>
						</view>
						<view class="p2">
							您已发起退款申请
						</view>
						<view class="p2">
							{{list.arriveDate}}
						</view>
						<image src="@/static/scenicSpots/icon2.png"></image>
					</view>

				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				current: 0,
				list: {},
				titles: '退款详情',
				h: uni.getSystemInfoSync().windowHeight,
				mt: uni.getSystemInfoSync().statusBarHeight + 44,
			}
		},

		onLoad(e) {
			console.log(JSON.parse(e.list), '---------2--22--2-2-22-');
			this.list = JSON.parse(e.list)
			this.getList()
		},
		methods: {
			getList() {
				this.$api.post('/order/icbc/refund', this.list).then(result => {
					console.log(result);
					if (result.statusCode === 200) {
						this.$showToast('退款成功');
						// setTimeout(() => {
						// 	uni.redirectTo({
						// 		url: '/pagesMy/order/index'
						// 	})
						// }, 1000)
					} else this.$showToast(result.data.msg);
				})
			}


		}
	}
</script>
<style lang="scss">
	.step {
		.u-steps-item__wrapper {
			background: transparent;

		}

		.u-steps--row {
			margin: 0 -30rpx;
		}

		.u-text__value {
			font-size: 24rpx !important;
		}

		.u-text__value--main {
			color: #fff;
		}

		.u-steps-item__line {
			background-color: #babbbd;
		}

		.icon {
			font-size: 0;
			border-radius: 100%;
			background-color: #fff;
		}

		.icon_ {
			border-radius: 100%;
			background-color: #babbbd;
			font-size: 0;
		}


	}
</style>
<style lang="scss" scoped>
	.page {
		background-color: #F5F8FA;

		.box {
			width: 96%;
			margin: 0 auto 20rpx;
			border-radius: 16rpx;
			background-color: #fff;

			.topPart {
				padding: 40rpx 24rpx;

				.top {
					display: flex;
					margin-bottom: 30rpx;

					text {
						&:first-child {
							font-size: 36rpx;
							color: #333;
						}

						&:nth-child(2) {
							flex: 1;
							text-align: right;
							font-size: 24rpx;
							color: #FF4141;
							margin-top: 12rpx;
						}

						&:last-child {
							font-size: 36rpx;
							color: #FF4141;
						}
					}
				}

				.bot {
					font-size: 24rpx;
					color: #808080;
				}
			}

			.steps {
				width: 94%;
				margin: 0 auto;
				border-top: 1rpx solid #EFEFEF;
				position: relative;

				.line {
					position: absolute;
					height: 80%;
					width: 1rpx;
					background-color: #ccc;
					left: 24rpx;
					top: 64rpx
				}

				.item {
					padding: 64rpx 0 50rpx 72rpx;

					position: relative;

					.p1 {
						margin-bottom: 30rpx;

						text {
							font-size: 30rpx;
							color: #333;

							&:nth-child(1) {
								font-weight: 600;
								margin-right: 36rpx;
							}
						}
					}

					.p2 {
						font-size: 26rpx;
						color: #808080;
						margin-bottom: 24rpx;
					}

					image {
						position: absolute;
						width: 48rpx;
						height: 48rpx;
						left: 0;
						top: 64rpx;
						z-index: 2;
					}
				}
			}
		}

		.content {
			position: relative;
			z-index: 3;
			// padding-bottom: 160rpx;

			.tit {
				// background: #0EBFFE !important;
				padding: 36rpx 0 36rpx 66rpx;
				font-size: 36rpx;
				color: #fff;
			}

			.tabder {
				display: flex;
				padding: 0 54rpx 36rpx;
				justify-content: space-between;

				// .u-icon {
				// 	background: #EFEFEF;
				// }

				.one {}

				.two {
					display: flex;
					align-items: center;


					text:nth-child(1) {
						width: 280rpx;
						height: 4rpx;
						background-color: #EFEFEF;
						display: block;
					}

					text:nth-child(3) {
						width: 280rpx;
						height: 4rpx;
						background-color: #EFEFEF;
						display: block;
					}
				}
			}

			.tabder-text {
				padding: 0 54rpx 36rpx;
				text-align: center;
				display: flex;
				justify-content: space-between;
				font-size: 24rpx;
				color: #FFFFFF;
			}

		}
	}

	.bg {
		height: 860rpx;
		position: fixed;
		top: 44px;
		z-index: 1;
		width: 100%;
		background-image: linear-gradient(to bottom, #007A69, #007A69, #F5F8FA);
	}

	.btns {
		position: fixed;
		bottom: 0;
		z-index: 4;
		left: 0;
		display: flex;
		padding: 16rpx;
		background-color: #fff;
		gap: 0 20rpx;
		box-shadow: 0 -8rpx 16rpx rgba(0, 0, 0, 0.06);

		.b_ {
			width: 220rpx;
			max-width: 220rpx;
			height: 80rpx;
			line-height: 80rpx;
			border-radius: 16rpx;
			color: #333
		}
	}
</style>